﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;
namespace IHISCETeim.BLL
{
    public class YYShipmentController
    {
        public static int Add(List<YYShipmentInfo> list)
        {
            return YYShipmentDAL.Add(list);
        }
        public static bool Delete(int ShipmentID)
        {
            return YYShipmentDAL.Delete(ShipmentID);
        }
        public static YYShipmentInfo GetByID(int ShipmentID)
        {
            return  CBO.FillObject<YYShipmentInfo>( YYShipmentDAL.GetByID(ShipmentID));
        }
        public static DataTable GetPagination(string whereSql, int PageIndex, int PageSize, string Sort, ref int TotalCount)
        {
            return YYShipmentDAL.GetPagination(whereSql, PageIndex, PageSize, Sort, ref  TotalCount);
        }
        public static bool Update(YYShipmentInfo obj)
        {
            return YYShipmentDAL.Update(obj);
        }

    }
}
